From: Robert Lipe Date: Fri, 30 Dec 2016 05:12:18 +0000 (-0600) Subject: Make unknown units in parse_speed into warnings and not fatal. X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~12^2~9^2~7 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=4532ceb7b9a400c3787ff94e16b194b949274498;p=gpsbabel.git Make unknown units in parse_speed into warnings and not fatal. --- diff --git a/parse.cc b/parse.cc index 6540b94b5..981e2f1b6 100644 --- a/parse.cc +++ b/parse.cc @@ -137,7 +137,7 @@ parse_speed(const char* str, double* val, const double scale, const char* module } else if (case_ignore_strcmp(unit, "mih") == 0) { *val = MPH_TO_MPS(*val); } else { - fatal("%s: Unsupported speed unit '%s' in item '%s'!\n", module, unit, str); + warning("%s: Unsupported speed unit '%s' in item '%s'!\n", module, unit, str); } return 2;